package com.sqx.modules.health.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author gxy
 * @since 2022-07-14
 */
@Getter
@Setter
@TableName("ncg_record")
@ApiModel(value = "Record对象", description = "")
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("测量患者")
    private Long uid;

    @ApiModelProperty("设备编码")
    private String imei;

    @ApiModelProperty("测量数据类型 1. 血压 2. 血糖")
    private Integer type;

    @ApiModelProperty("血压测量结果 - 收缩压")
    private Integer sys;

    @ApiModelProperty("血压测量结果 - 舒张压")
    private Integer dia;

    @ApiModelProperty("血压测量结果 - 脉搏")
    private Integer pul;

    @ApiModelProperty("血糖")
    private BigDecimal glucose;

    @ApiModelProperty("测量时间")
    private String recordtime;

    @ApiModelProperty("测量医生")
    private Long doctorid;

    @ApiModelProperty("是否完成 0 未完成 1完成")
    private Integer flag;

    @ApiModelProperty("测量医生姓名")
    @TableField(exist = false)
    private String doctorname;

    @ApiModelProperty("文件存储路径")
    private String file;

    @ApiModelProperty("患者报告id")
    private String patid;

    @ApiModelProperty("动态血压数据扩展字段")
    private String detaildatatag;

    @ApiModelProperty("是否手动录入  0 否 1 是")
    private Integer custom;

    @ApiModelProperty("尿酸")
    private BigDecimal uric;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("血脂-总胆固醇 3.0-5.7mmol/L")
    private BigDecimal tcho;

    @ApiModelProperty("血脂-甘油三酯 0.5-1.7mmol/L")
    private BigDecimal tg;

    @ApiModelProperty("血脂-高密度脂蛋白胆固醇 0.9-1.8mmol/L")
    private BigDecimal hdl;

    @ApiModelProperty("血脂-低密度脂蛋白胆固醇 2.1-3.1mmol/L")
    private BigDecimal ldl;



//    @ApiModelProperty("设备所属产品id")
//    private Integer productid;


}
